package cn.ava.user.mapper;

import cn.ava.user.domain.User;
import cn.ava.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ava
 * @since 2022-07-06
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    // 根据手机号查询
    User getByPhone(String phone);

    // 根据邮箱查询
    User getByEmail(String phone);
    // 根据logininfo登录表id查询
    User getByLogininfoId(Long id);
}
